﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Backoffice/Admin.Master" AutoEventWireup="true"
    CodeBehind="AccountAdd.aspx.cs" Inherits="Tizer.Web.Backoffice.AccountAdd" %>

<asp:Content ID="cntHead" ContentPlaceHolderID="cphHead" runat="server">
    <title runat="server" id="lblTitle" enableviewstate="false" clientidmode="Static">
    </title>
</asp:Content>
<asp:Content ID="cntScript" ContentPlaceHolderID="cphScript" runat="server">
</asp:Content>
<asp:Content ID="cntStyle" ContentPlaceHolderID="cphStyle" runat="server">
</asp:Content>
<asp:Content ID="cntContent" ContentPlaceHolderID="cpContent" runat="server">
    <div class="row">
        <div class="span2">
            <input type="button" class="btn" onclick="javascript:window.history.back();" value="Назад" />
        </div>
        <div class="offset1 span21 ">
            <tizer:Breadcrumbs runat="server" ID="adminMenu" />
        </div>
    </div>
    <tizer:Message runat="server" ID="tizerMessage" />
    <div class="row">
        <div class="span12">
            <h5>
                Авторизация</h5>
            <hr class="margin-bot2" />
            <fieldset class="control-group">
                <label for="txtLogin" class="control-label">
                    Логин</label>
                <div class="controls">
                    <asp:TextBox runat="server" ID="txtLogin" CssClass="required"></asp:TextBox>
                    <asp:RequiredFieldValidator runat="server" ControlToValidate="txtLogin" ID="rfvLogin"
                        ErrorMessage="Укажите логин!" />
                </div>
            </fieldset>
            <fieldset class="control-group">
                <label for="txtPassword1" class="control-label">
                    Пароль</label>
                <div class="controls">
                    <asp:TextBox runat="server" ID="txtPassword1" TextMode="Password" CssClass="required"></asp:TextBox>
                    <asp:RequiredFieldValidator runat="server" ControlToValidate="txtPassword1" ID="rfvPassword1"
                        ErrorMessage="Укажите пароль!" />
                </div>
            </fieldset>
            <fieldset class="control-group">
                <label for="txtPassword2" class="control-label">
                    Повторите пароль</label>
                <div class="controls">
                    <asp:TextBox runat="server" ID="txtPassword2" TextMode="Password" CssClass="required"></asp:TextBox>
                    <asp:RequiredFieldValidator runat="server" ControlToValidate="txtPassword2" ID="rfvPassword2"
                        ErrorMessage="Укажите пароль!" />
                    <asp:CompareValidator runat="server" ID="cvPasswords" ControlToValidate="txtPassword2"
                        ControlToCompare="txtPassword1"></asp:CompareValidator>
                </div>
            </fieldset>
            <fieldset class="control-group">
                <label for="txtPassword" class="control-label">
                    Email</label>
                <div class="controls">
                    <asp:TextBox runat="server" ID="txtEmail" CssClass="required"></asp:TextBox>
                    <asp:RequiredFieldValidator runat="server" ControlToValidate="txtEmail" ID="rfvEmail"
                        ErrorMessage="Укажите email!" Display="Dynamic" />
                    <asp:RegularExpressionValidator ID="regexEmailValid" runat="server" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                        ControlToValidate="txtEmail" ErrorMessage="Неверный формат email" Display="Dynamic" />
                </div>
            </fieldset>
            <fieldset class="control-group">
                <div class="controls">
                    <div class="control-list">
                        <label class="checkbox">
                            <asp:CheckBox runat="server" ID="chkActive" />
                            Аккаунт активирован
                        </label>
                        <label class="checkbox">
                            <asp:CheckBox runat="server" ID="chkApprove" />
                            Аккаунт подтвержден
                        </label>
                    </div>
                    <p class="help-text">
                        <strong>Внимание:</strong>(установить, значит - подтвердить)</p>
                </div>
            </fieldset>
            <fieldset class="control-group">
                <label for="ddlAccountType" class="control-label">
                    Тип аккаунта</label>
                <div class="controls">
                    <asp:DropDownList runat="server" ID="ddlAccountType">
                    </asp:DropDownList>
                </div>
            </fieldset>
            <h5 class="margin-top1">
                Персональные данные</h5>
            <hr class="margin-bot2" />
            <fieldset class="control-group">
                <label for="txtCompany" class="control-label">
                    Название юр.лица</label>
                <div class="controls">
                    <asp:TextBox runat="server" ID="txtCompany"></asp:TextBox>
                </div>
            </fieldset>
            <fieldset class="control-group">
                <label for="txtCompany" class="control-label">
                    Описание</label>
                <div class="controls">
                    <asp:TextBox runat="server" ID="txtDescription" TextMode="MultiLine" CssClass="input-xlarge"></asp:TextBox>
                </div>
            </fieldset>
            <fieldset class="control-group">
                <label for="txtPublicEmail" class="control-label">
                    Email заказа</label>
                <div class="controls">
                    <asp:TextBox runat="server" ID="txtPublicEmail"></asp:TextBox>
                    <p class="help-text">
                        Сюда будут приходить сообщения о заказе</p>
                </div>
            </fieldset>
            <fieldset class="control-group">
                <label for="txtLogoLoad" class="control-label">
                    Логотип</label>
                <div class="controls">
                    <!--<asp:FileUpload runat="server" ID="fuLogo" CssClass="input-file"></asp:FileUpload>-->
                    <tizer:FileUpload ID="LogoUpload" runat="server" TextBoxCss="input-file" />
                </div>
            </fieldset>
        </div>
        <div class="span12">
            <h5>
                Адресная информация</h5>
            <hr class="margin-bot2" />
            <fieldset class="control-group">
                <label for="ddlCountry" class="control-label">
                    Страна</label>
                <div class="controls">
                    <asp:DropDownList runat="server" ID="ddlCountry" OnSelectedIndexChanged="DdlCountryIndexChange">
                    </asp:DropDownList>
                </div>
            </fieldset>
            <fieldset class="control-group">
                <label for="ddlCity" class="control-label">
                    Город</label>
                <div class="controls">
                    <asp:DropDownList runat="server" ID="ddlCity">
                    </asp:DropDownList>
                </div>
            </fieldset>
            <fieldset class="control-group">
                <label for="txtAddress1" class="control-label">
                    Адрес</label>
                <div class="controls">
                    <asp:TextBox runat="server" ID="txtAddress1"></asp:TextBox>
                </div>
            </fieldset>
            <fieldset class="control-group">
                <label for="txtAddress2" class="control-label">
                    Адрес 2</label>
                <div class="controls">
                    <asp:TextBox runat="server" ID="txtAddress2"></asp:TextBox>
                </div>
            </fieldset>
            <fieldset class="control-group">
                <label for="txtPostalCode" class="control-label">
                    Индекс</label>
                <div class="controls">
                    <asp:TextBox runat="server" ID="txtPostalCode">0</asp:TextBox>
                    <asp:RegularExpressionValidator ID="revPostalCode" runat="server" ControlToValidate="txtPostalCode"
                        ErrorMessage="Только цифры!" ValidationExpression="^\d+$" />
                </div>
            </fieldset>
            <fieldset class="control-group">
                <label for="txtPhone" class="control-label">
                    Телефон</label>
                <div class="controls">
                    <asp:TextBox runat="server" ID="txtPhone">0</asp:TextBox>
                    <asp:RegularExpressionValidator ID="revPhone" runat="server" ControlToValidate="txtPhone"
                        ErrorMessage="Только цифры!" ValidationExpression="^\d+$" />
                </div>
            </fieldset>
            <fieldset class="control-group">
                <label for="txtPhone2" class="control-label">
                    Телефон</label>
                <div class="controls">
                    <asp:TextBox runat="server" ID="txtPhone2">0</asp:TextBox>
                    <asp:RegularExpressionValidator ID="revPhone2" runat="server" ControlToValidate="txtPhone2"
                        ErrorMessage="Только цифры!" ValidationExpression="^\d+$" />
                </div>
            </fieldset>
            <fieldset class="control-group">
                <label for="txtPhoneMobile" class="control-label">
                    Телефон мобильный</label>
                <div class="controls">
                    <asp:TextBox runat="server" ID="txtPhoneMobile">0</asp:TextBox>
                    <asp:RegularExpressionValidator ID="revPhoneMobile" runat="server" ControlToValidate="txtPhoneMobile"
                        ErrorMessage="Только цифры!" ValidationExpression="^\d+$" />
                </div>
            </fieldset>
            <fieldset class="control-group">
                <label for="txtFax" class="control-label">
                    Факс</label>
                <div class="controls">
                    <asp:TextBox runat="server" ID="txtFax">0</asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtFax"
                        ErrorMessage="Только цифры!" ValidationExpression="^\d+$" />
                </div>
            </fieldset>
            <fieldset class="control-group">
                <label for="txtICQ" class="control-label">
                    ICQ</label>
                <div class="controls">
                    <asp:TextBox runat="server" ID="txtICQ">0</asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtICQ"
                        ErrorMessage="Только цифры!" ValidationExpression="^\d+$" />
                </div>
            </fieldset>
            <fieldset class="control-group">
                <label for="txtWebsite" class="control-label">
                    Веб-сайт</label>
                <div class="controls">
                    <asp:TextBox runat="server" ID="txtWebsite"></asp:TextBox>
                </div>
            </fieldset>
            <fieldset class="control-group">
                <label for="txtMapLoad" class="control-label">
                    Карта проезда</label>
                <div class="controls">
                    <!--<asp:FileUpload runat="server" ID="fuMap" CssClass="input-file"></asp:FileUpload>-->
                    <tizer:FileUpload ID="MapUpload" runat="server" TextBoxCss="input-file" />
                </div>
            </fieldset>
        </div>
    </div>
    <div class="form-actions">
        <asp:Button runat="server" ID="btnAdd" OnClick="Add" CssClass="btn primary" Text="Сохранить" />
    </div>
</asp:Content>
